// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** addBugComment 添加缺陷评论 POST /api/bug-comment */
export async function addBugCommentUsingPost(
  body: API.AddBugCommentRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/bug-comment', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}

/** deleteBugComment 删除缺陷评论 DELETE /api/bug-comment */
export async function deleteBugCommentUsingDelete(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteBugCommentUsingDELETEParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/bug-comment', {
    method: 'DELETE',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** pageBugComment 分页查询缺陷评论 POST /api/bug-comment/page */
export async function pageBugCommentUsingPost(
  body: API.PageBugCommentRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageBugCommentVo_>('/api/bug-comment/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  })
}
